Skip to contentSkip to conversation

Need help to build poky image for beagle board

DISCUSSION Sparsh Wid hope 4 participants 5 messages Mar 21, 2011 – Mar 22, 2011

lore
Share & tools
lore
#0 lore raw

Hi All,
I'm trying to build poky image for beagle board. I got the following error- FATAL: Error when parsing []: file classes/packaged-staging.bbclass not found in /home/surya/Surya/pro/POKY/meta-texasinstruments:/home/surya/Surya/pro/POKY/meta I followed the steps below-
1.Downloaded the source wget -c http://git.pokylinux.org/cgit/cgit.cgi/poky/snapshot/poky-laverne-4.0.1.tar.bz2
and rename it as POKY.2. Get TI's overlay
git clone git://github.com/mrchapp/meta-texasinstruments.git
cd meta-texasinstruments
git checkout -b gitomapzoom --track origin/gitomapzoom

3. Copy configuration
cp -p POKY/meta-texasinstruments/conf/misc/local.conf POKY/build/conf/local.conf

4. Build!
cd POKY
source poky-init-build-envfrom the link http://elinux.org/BeagleBoard/PokyHelp me to solve this error.Thanks in advance

#1 lore raw
Quoted 29 lines · Sparsh Wid hope

Hi All,

I'm trying to build poky image for beagle board.
I got the following error-
FATAL: Error when parsing []: file classes/packaged-staging.bbclass not found in /home/surya/Surya/pro/POKY/meta-texasinstruments:/home/surya/Surya/pro/POKY/meta

I followed the steps below-

1.Downloaded the source
wget -c http://git.pokylinux.org/cgit/cgit.cgi/poky/snapshot/poky-laverne-4.0.1.tar.bz2 <http://git.pokylinux.org/cgit/cgit.cgi/poky/snapshot/poky-laverne-4.0.1.tar.bz2>

and rename it as POKY.
2. Get TI's overlay
git clone git://github.com/mrchapp/meta-texasinstruments.git
cd meta-texasinstruments
git checkout -b gitomapzoom --track origin/gitomapzoom

3. Copy configuration
cp -p POKY/meta-texasinstruments/conf/misc/local.conf POKY/build/conf/local.conf

4. Build!
cd POKY
source poky-init-build-env
from the linkhttp://elinux.org/BeagleBoard/Poky
Help me to solve this error.
Thanks in advance

Quoted 4 lines

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

I suspect it has to do with the version of poky in you are using, unlike the old "green" release, the "laverne" release doesn't contain the file "packaged-staging.bbclass". Looking at the dates in the meta-texasinstruments git tree(latest update 2009) I think it has something to do with the compatibility.
I hope this gives you a direction to search for the problem, I am not very experienced with Poky yet.

Regards,
Gerard

#2 lore raw
In reply to Sparsh Wid hope

Op 21 mrt 2011, om 11:29 heeft Sparsh Wid hope het volgende geschreven:

Quoted 3 lines

Hi All,

I'm trying to build poky image for beagle board.

I'll address the 'beagleboard' portion of your question below.

Quoted 5 lines

I got the following error-
FATAL: Error when parsing []: file classes/packaged-staging.bbclass not found in /home/surya/Surya/pro/POKY/meta-texasinstruments:/home/surya/Surya/pro/POKY/meta

I followed the steps below-

Quoted 8 lines

1.Downloaded the source
wget -c http://git.pokylinux.org/cgit/cgit.cgi/poky/snapshot/poky-laverne-4.0.1.tar.bz2

and rename it as POKY.
2. Get TI's overlay
git clone git://github.com/mrchapp/meta-texasinstruments.git
cd meta-texasinstruments
git checkout -b gitomapzoom --track origin/gitomapzoom

That's not a TI overlay, it's an overlay done by someone to add the dspbridge stuff to OE. If you want better beagleboard support, use the following layer:

http://gitorious.org/angstrom/angstrom-layers/

If you don't want to manually resolve all the layer dependencies have a look at the scripts mentioned in the readme:

http://gitorious.org/angstrom/angstrom-layers/blobs/master/README

The 'better' in the above is aimed at hw support like cpufreq, DSP, 1GHz/720MHz, etc. The standard yocto kernel lacks all that because it's focussed at different things like 100% POSIX compliance.

regards,

Koen

Quoted 16 lines

3. Copy configuration
cp -p POKY/meta-texasinstruments/conf/misc/local.conf POKY/build/conf/local.conf

4. Build!
cd POKY
source poky-init-build-env

from the link http://elinux.org/BeagleBoard/Poky
Help me to solve this error.
Thanks in advance

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#3 lore raw
Quoted 18 lines · Koen Kooi

Op 21 mrt 2011, om 11:29 heeft Sparsh Wid hope het volgende geschreven:

Quoted 1 line

I'm trying to build poky image for beagle board.

I'll address the 'beagleboard' portion of your question below.

Quoted 13 lines

I got the following error-
FATAL: Error when parsing []: file classes/packaged-staging.bbclass not found in /home/surya/Surya/pro/POKY/meta-texasinstruments:/home/surya/Surya/pro/POKY/meta

I followed the steps below-

1.Downloaded the source
wget -c http://git.pokylinux.org/cgit/cgit.cgi/poky/snapshot/poky-laverne-4.0.1.tar.bz2

and rename it as POKY.
2. Get TI's overlay
git clone git://github.com/mrchapp/meta-texasinstruments.git
cd meta-texasinstruments
git checkout -b gitomapzoom --track origin/gitomapzoom

As others have said, this is an older metadata layer which was written by some people at TI for older versions of Poky. Its not really been updated in a couple of years. If you really want to use that layer, you need to use it with the version of Poky it was written for. I'm not sure offhand which that would be but its a very early development of our layer technology and we're getting better at handling documenting the depedencies and working on a more automated way to handle this.

Quoted 6 lines

That's not a TI overlay, it's an overlay done by someone to add the dspbridge stuff to OE. If you want better beagleboard support, use the following layer:

http://gitorious.org/angstrom/angstrom-layers/

Quoted 8 lines

If you don't want to manually resolve all the layer dependencies have a look at the scripts mentioned in the readme:

http://gitorious.org/angstrom/angstrom-layers/blobs/master/README

The 'better' in the above is aimed at hw support like cpufreq, DSP, 1GHz/720MHz, etc. The standard yocto kernel lacks all that because it's focussed at different things like 100% POSIX compliance.

Right, Yocto decided to use the beagleboard hardware as a hardware target to demonstrate that its core arm support was good.

We've therefore been looking at things like POSIX tests, LSB compliance and also some of the tooling benefits from the Yocto kernel such as its defconfig management, integrated lttng support and other features. In the meantime, the hardware component support in other layers has vastly improved which is great.

I'm hoping we'll find ways to get the best of both worlds in future and we're looking at ways of making that happen.

Cheers,

Richard

#4 lore raw
In reply to Koen Kooi

Thanks for your guidance, I downloaded angstrom-angstrom-layers package from the link
http://gitorious.org/angstrom/angstrom-layers/ and updated laverne-4.0.1/meta/conf, /recipes-bsp, /recipes-ti, added image recipes_images_beagleboard-demo-image.bb in /meta/recipes/core/images and modified /meta/conf/local.conf.sample as #MACHINE  ?="qemux86" and
MACHINE ?="beagleboard"
and bitbake it as bitbake omap-image-beagleboard-demo and got the error :
NOTE: <type 'exceptions.Exception'>:variable BBPATH references itself! while evaluating:
/home/surya/Surya/pro/POKY/laverne-4.0.1/meta:${BBPATH}
NOTE: <type 'exceptions.Exception'>:variable BBPATH references itself! while evaluating:
${BBPATH}:${LAYERDIR}
FATAL: Traceback (most recent call last):
  File "/home/surya/Surya/pro/POKY/laverne-4.0.1/scripts/..//bitbake//bin/bitbake", line 216, in <module>
    ret = main()
  File "/home/surya/Surya/pro/POKY/laverne-4.0.1/scripts/..//bitbake//bin/bitbake", line 177, in main
    cooker = bb.cooker.BBCooker(configuration, server)
  File "/home/surya/Surya/pro/POKY/laverne-4.0.1/scripts/..//bitbake/lib/bb/cooker.py", line 85, in __init__
    self.parseConfigurationFiles(self.configuration.file)
  File "/home/surya/Surya/pro/POKY/laverne-4.0.1/scripts/..//bitbake/lib/bb/cooker.py", line 515, in parseConfigurationFiles
    data = bb.parse.handle(os.path.join(layer, "conf", "layer.conf"), data)
  File "/home/surya/Surya/pro/POKY/laverne-4.0.1/scripts/..//bitbake/lib/bb/parse/__init__.py", line 75, in handle
    return h['handle'](fn, data, include)
  File "/home/surya/Surya/pro/POKY/laverne-4.0.1/scripts/..//bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 105, in handle
    statements.eval(data)
  File "/home/surya/Surya/pro/POKY/laverne-4.0.1/scripts/..//bitbake/lib/bb/parse/ast.py", line 37, in eval
    statement.eval(data)
  File "/home/surya/Surya/pro/POKY/laverne-4.0.1/scripts/..//bitbake/lib/bb/parse/ast.py", line 97, in eval
    val = bb.data.expand(groupd["value"], e)
Exception: variable BBPATH references itself!

Help me to solve the problem.
Thanks in advance.

--- On Mon, 21/3/11, Koen Kooi <[email protected]> wrote:

From: Koen Kooi <[email protected]>
Subject: Re: [poky] Need help to build poky image for beagle board
To: "Sparsh Wid hope" <[email protected]>
Cc: "poky" <[email protected]>, "Patches and discussions about the oe-core layer" <[email protected]>
Date: Monday, 21 March, 2011, 11:49 AM

Op 21 mrt 2011, om 11:29 heeft Sparsh Wid hope het volgende geschreven:

Quoted 3 lines

Hi All,

I'm trying to build poky image for beagle board.

I'll address the 'beagleboard' portion of your question below.

Quoted 5 lines

I got the following error-
FATAL: Error when parsing []: file classes/packaged-staging.bbclass not found in /home/surya/Surya/pro/POKY/meta-texasinstruments:/home/surya/Surya/pro/POKY/meta

I followed the steps below-

Quoted 8 lines

1.Downloaded the source
wget -c http://git.pokylinux.org/cgit/cgit.cgi/poky/snapshot/poky-laverne-4.0.1.tar.bz2

and rename it as POKY.
2. Get TI's overlay
git clone git://github.com/mrchapp/meta-texasinstruments.git
cd meta-texasinstruments
git checkout -b gitomapzoom --track origin/gitomapzoom

That's not a TI overlay, it's an overlay done by someone to add the dspbridge stuff to OE. If you want better beagleboard support, use the following layer:

http://gitorious.org/angstrom/angstrom-layers/

If you don't want to manually resolve all the layer dependencies have a look at the scripts mentioned in the readme:

http://gitorious.org/angstrom/angstrom-layers/blobs/master/README

The 'better' in the above is aimed at hw support like cpufreq, DSP, 1GHz/720MHz, etc. The standard yocto kernel lacks all that because it's focussed at different things like 100% POSIX compliance.

regards,

Koen

Quoted 16 lines

3. Copy configuration
cp -p POKY/meta-texasinstruments/conf/misc/local.conf POKY/build/conf/local.conf

4. Build!
cd POKY
source poky-init-build-env

from the link http://elinux.org/BeagleBoard/Poky
Help me to solve this error.
Thanks in advance

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky